//
//  Header.h
//  CheckApp
//
//  Created by dongkedi on 14-1-24.
//  Copyright (c) 2014年 dongkedi. All rights reserved.
//

#ifndef CheckApp_Header_h
#define CheckApp_Header_h

//常用参数
#define kScreenWidth [[UIScreen mainScreen] bounds].size.width
#define kScreenHeight [[UIScreen mainScreen] bounds].size.height
#define kSystemVersion [[[UIDevice currentDevice] systemVersion]floatValue]
#define IOS_7 ([[[UIDevice currentDevice] systemVersion] floatValue] >= 7.0f)
#define IOS_8 ([[[UIDevice currentDevice] systemVersion] floatValue] >= 8.0f)
#define kStatusBarHeight 20.0f
#define kNavigationBarHeight 44.0f
#define kNavigationBarLandscapeHeight 33.0f
#define kTabBarHeight 49.0f
#define kContentViewHeight (kScreenHeight - kStatusBarHeight - kNavigationBarHeight - kTabBarHeight)
#define kPickerViewHeight 216.0f
#define kToolBarHeight 44.0f
#define kInputViewHeight (kPickerViewHeight + kToolBarHeight)
#define kWindow [[UIApplication sharedApplication].delegate window]
#define kAppdelegate (AppDelegate *)[UIApplication sharedApplication].delegate
#define kIphone5Height 568

// View 坐标(x,y)和宽高(width,height)
#define X(v)               (v).frame.origin.x
#define Y(v)               (v).frame.origin.y
#define WIDTH(v)           (v).frame.size.width
#define HEIGHT(v)          (v).frame.size.height

//
#define kNavBlueColor   [UIColor colorWithHexString:@"00b1ef"]

//通知
#define kRefeshCalendarBackColor @"refeshCalendarBackColor"

//按项目筛选通知
#define kNotificationXiangMu @"notificationXiangMu"
//按方案筛选通知
#define kNotificationFangAn @"notificationFangAn"

#endif
